'''
if 条件:
    下级代码
elif 条件:
    下级代码
else:
    下级代码
'''
weather = "晴"
if weather == "晴":
    print("出去爬山")
elif weather == "阴" or weather == "小雨":
    print("出去散步")
elif weather == "小雪":
    print("出去钓鱼")
else:
    print("在家打游戏")


# 这样行不行?
num = int(input("请输入数字："))
if num == 1:
    print("星期一")
elif num == 2:
    print("星期二")
elif num == 3:
    print("星期三")
elif num == 4:
    print("星期四")
elif num == 5:
    print("星期五")
elif num == 6:
    print("星期六")
elif num == 7:
    print("星期日")
else:
    print("输入有误")


 # 嵌套（能不这么写，就不这么写）
age = 17
job = "学生"
if age < 18:
    print("购物打9折")
    if job == "学生":
        print("购物打8折")